﻿using System;
using System.Collections.Generic;

using E.BLL;
using E.Model;
using E.Web.UI.Page;
using E.Enum;

using X.Common;

namespace E.Web.Teacher.internals.publics.course
{
    public partial class View : TeacherBasePage
    {
        public int id;
        public CourseModel model = new CourseModel();

        protected override void ShowPage()
        {
            id = XRequest.GetInt("id", -1);
            if (id != -1)
            {
                model = (new CourseBLL()).GetInternalCourseInfoById(id);
                if (model.ID == -1)
                {
                    ExecuteJS("alert('数据读取错误'); window.location = '/internals/course/List.aspx';");
                }
            }
            else
            {
                ExecuteJS("alert('参数错误'); window.location = '/internals/course/List.aspx';");
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
